Build, test, and submit your app using Xcode, Apple's integrated development environment.

Posts under Xcode tag

200 Posts

Post

Replies

Boosts

Views

Activity

Resolving a "Simulator runtime is not available" error
Some Macs recently received a macOS system update which disabled the simulator runtimes used by Xcode 15, including the simulators for iOS, tvOS, watchOS, and visionOS. If your Mac received this update, you will receive the following error message and will be unable to use the simulator: The com.apple.CoreSimulator.SimRuntime.iOS-17-2 simulator runtime is not available. Domain: com.apple.CoreSimulator.SimError Code: 401 Failure Reason: runtime profile not found using "System" match policy Recovery Suggestion: Download the com.apple.CoreSimulator.SimRuntime.iOS-17-2 simulator runtime from the Xcode To resume using the simulator, please reboot your Mac. After rebooting, check Xcode Preferences → Platforms to ensure that the simulator runtime you would like to use is still installed. If it is missing, use the Get button to download it again. The Xcode 15.3 Release Notes are also updated with this information.
0
0
11k
May ’24
iOS 26.5 simulator data migration stays failed after MessageAccountsMigrator is watchdogged at 30 seconds
Unsure where else to post this since it only happens in macOS VMs. The first boot of a fresh iPhone 17 simulator on the iOS 26.5 runtime spends several minutes in data migration, then simctl bootstatus reports Data Migration Failed. The only failed plugin is MessageAccountsMigrator, and datamigrator kills it with a 30-second watchdog. The device still reaches Booted, but com.apple.migration.plist stores success=false, so every later boot runs data migration again and fails the same way. Environment Mac: Apple silicon virtual machine, 8 vCPU, 7 GB RAM, SIP disabled. The console user is logged in graphically. macOS 26.6.2 (25G83) Xcode 26.6 (17F113), xcode-select -p is /Applications/Xcode.app/Contents/Developer Runtime: iOS 26.5 (23F77), com.apple.CoreSimulator.SimRuntime.iOS-26-5 Device: the default iPhone 17 created with that runtime, state Shutdown before the first boot Steps Install Xcode 26.6 and the iOS 26.5 simulator runtime (xcodebuild -downloadPlatform iOS). Do not boot a simulator during install. xcrun simctl boot <iPhone 17 UDID> xcrun simctl bootstatus <UDID> -b Shut the device down and boot it again. Expected The first boot finishes data migration, including a fresh Messages account store with no accounts to migrate. Later boots skip data migration. Actual The first bootstatus -b runs for 5 minutes 25 seconds and ends with: Status=3, isTerminal=YES Data Migration Failed bootstatus still exits 0. simctl list shows the device as Booted. SpringBoard is running, and xcrun simctl io <UDID> screenshot shows the home screen. ~/Library/Developer/CoreSimulator/Devices/<UDID>/data/Library/Preferences/com.apple.migration.plist records: DMLastMigrationResults.success = false DMLastMigrationResults.buildVersion = 23F77 Every other plugin we inspected finished with kDMMigrationPhaseDescriptionDidFinishWithSuccess. 00LaunchServicesMigrator took about 148 seconds and succeeded. The only failure is:com.apple.message.AccountsMigrator MessageAccountsMigrator.migrator kDMMigrationPluginResultsDuration = 30.922 seconds kDMMigrationPluginResultsPhaseDescription = kDMMigrationPhaseDescriptionDidFinishWithFailure The simulated device log (com.apple.migration:core) shows the plugin estimated 0.1 seconds, produced no further log lines, and was then killed: Beginning migration for com.apple.message.AccountsMigrator (MessageAccountsMigrator.migrator); estimate is 0.1 seconds Out-of-process execution will watchdog com.apple.message.AccountsMigrator (MessageAccountsMigrator.migrator) pid 1377 after 30 seconds MigrationPluginWrapper -runPluginAtPath: .../MessageAccountsMigrator.migrator withParameters: XPC error: Connection interrupted Out-of-process execution did get watchdogged for com.apple.message.AccountsMigrator (MessageAccountsMigrator.migrator) with Error Domain=com.apple.datamigrator Code=0 "migrationpluginwrapper xpc error" UserInfo={NSLocalizedDescription=migrationpluginwrapper xpc error} ... completed migration for com.apple.message.AccountsMigrator (MessageAccountsMigrator.migrator) (30.9222 s) with success 0 ... Got Watchdogged, pid 1377, after 30 secondsA second boot, after a clean simctl shutdown, failed again in 65 seconds with the same Status=3 / Data Migration Failed. The stored success=false makes every boot retry migration. Setting both of these and booting again skipped migration: DMLastMigrationResults.success = true com.apple.message.AccountsMigrator phase = kDMMigrationPhaseDescriptionDidFinishWithSuccess That boot took 24 seconds and ended with Status=4294967295, Finished (Waiting on BackBoard, then Waiting on System App). The device was usable, so the watchdog looks like a stuck empty migration rather than a broken device. During the same boot, CoreSimulator.log also repeats: Failed to get a device identity for simulator device <UDID> Error Domain=com.apple.MobileActivation.ErrorDomain Code=-25 "Client is not supported." com.apple.CoreSimulator.CoreSimulatorService is not allowed to use this API.I have not shown that this identity error is what MessageAccountsMigrator is blocked on. The migrator log is silent until the watchdog fires. Two things would help: MessageAccountsMigrator should finish quickly when there are no accounts, and a watchdog kill of that plugin should not leave the whole migration success=false so that every later boot pays for it again. bootstatus should also return non-zero when it prints Data Migration Failed.
0
0
23
4h
Apple watch Xcode pairing & connection issues
I’m blocked debugging a watchOS app on a physical Apple Watch. The iPhone connects to Xcode normally (wired), but the Watch either fails to connect with a tunnel timeout or disappears entirely from Xcode after I unpaired it inside Devices & Simulators. Environment Mac: macOS 26.x (Apple Silicon Mac) Xcode: 26.2 iPhone: iOS 26.1 Apple Watch Ultra: watchOS 26.2 (build 23S303) Connection: iPhone connected to Mac via USB (trusted). Watch paired to iPhone and working normally in the Watch app. Issue A (when Watch is visible in Xcode) In Xcode → Window → Devices and Simulators, the Watch shows up but is not usable and fails to connect. Error: “Previous preparation error: A connection to this device could not be established.” “Timed out while attempting to establish tunnel using negotiated network parameters.” In some attempts the Watch shows “Capacity: Unknown” / limited details, and then fails during preparation. Issue B (after unpairing Watch in Xcode only) I unpaired/removed the Watch in Xcode (Devices & Simulators). I did not unpair the Watch from the iPhone. Now: iPhone appears in Xcode and works normally for builds. Watch is still paired to the iPhone and works normally. Watch no longer appears anywhere in Xcode Devices & Simulators (no paired watch section, no watch run destination). What I’ve tried Reboots of Mac, iPhone, Watch (multiple times) Watch unlocked, awake; iPhone unlocked and close to Watch Verified Watch is paired and connected in iPhone Watch app Developer Mode enabled on iPhone and Watch Wi-Fi and Bluetooth ON (Mac/iPhone/Watch), tried toggling both Tried on home Wi-Fi and also with iPhone hotspot (same result) Resetting trust prompts / reconnecting iPhone via USB, re-trusting Mac Apple Watch: “Clear Trusted Computers” Xcode: removing/re-adding devices; clearing derived data; restarting Xcode Watch Developer networking test: Responsiveness = Medium (430 RPM) Questions 1. Is this a known issue/regression with Xcode 26.2 + watchOS 26.2 tunneling (CoreDevice / devicectl)? 2. Is there an Apple-supported way to force Xcode to re-discover a paired Watch after it was removed from Xcode Devices & Simulators (without unpairing the Watch from the iPhone)? 3. Any recommended logs or diagnostic steps I should collect (Console logs, sysdiagnose, specific Xcode/CoreDevice logs) to include in a Feedback report? If helpful, I can provide the full error text from Xcode’s Devices window and any logs you recommend. Thank you in advance,
33
16
7.4k
6h
Can I submit a build made with Xcode 26 after releasing a newer version built with Xcode 27.1?
Question Is it supported to ship version N built with Xcode 27.1 (iOS 27 SDK), and then, after N is live, submit version N+1 built with Xcode 26 (iOS 26 SDK) as a rollback or hotfix? Context Version N is a major internal change built with Xcode 27.1 (UIScene lifecycle adoption). It will be released with phased release. If a serious regression appears, I know I cannot revert to a previous binary in App Store Connect. My plan is to keep the pre-change code on its own branch. I would bump the marketing version to N+1 (higher than N) and the build number, archive it with Xcode 26, and submit it as a normal update. What I found so far The SDK minimum requirements page says uploads currently need Xcode 26 or later with the iOS 26 SDK. It also says that from April 2027, uploads must use the iOS 27 SDK or later. TN2420 says version numbers cannot be reused and must increase. I found no official statement about whether a build from an older Xcode is accepted after a newer-Xcode build has shipped, beyond the April 2027 SDK cutoff. Specific questions Is there any rule or check that rejects an upload or submission because a higher version was previously built with a newer Xcode or SDK? Or is only the current SDK minimum enforced? Is N+1 built with Xcode 26 accepted for review and release at any point before the April 2027 SDK minimum takes effect? Is there a date at which Xcode 26 / iOS 26 SDK uploads stop being accepted, so I know how long this rollback path stays open? Is it safe to upload the Xcode 26 build to TestFlight now so it is already processed and ready? Does having a TestFlight build with a lower SDK than the live version cause any problem? Does the Xcode 26 build run correctly on iOS 27 devices when the app adopts UIScene lifecycle only in the Xcode 27 version? Are there any known assertions or behavior differences for apps built with the older SDK? For users who already installed N from Xcode 27.1, are there known problems when they update to N+1 built with an older SDK? For example, issues with app data, state restoration, or extensions. Thank you for any guidance or documentation pointers.
0
0
87
12h
Xcode 27.2: metal-package-builder Cannot Locate coremlcompiler When Converting .mlpackage to .mtlpackage
Hello, I'm trying to convert a Core ML model package (.mlpackage) into a Metal model package (.mtlpackage) using xcrun metal-package-builder, but the conversion consistently fails because metal-package-builder cannot locate coremlcompiler. Environment Mac: Mac mini with Apple M2 macOS: 27.2.1 Xcode: 27.2 (Build 27B52) Metal Toolchain: 27B47 Architecture: Apple Silicon (arm64) Command I'm running the following command in Terminal: xcrun --sdk macosx --find metal-package-builderIt successfully locates metal-package-builder in the installed Metal Toolchain. Then I run: "$(xcrun --sdk macosx --find metal-package-builder)" \ -ml "./2x_AniSD_DC_SPAN_92500_fp16_720x480.mlpackage" \ -o "./2x_AniSD_DC_SPAN_92500_fp16_720x480.mtlpackage"Error The command fails with: error: could not find coremlcompiler at /private/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v27.2.47.0.liDqLQ/XcodeDefault.xctoolchain/usr/bin/coremlcompilerWhat I have investigated so far I checked the actual locations of the relevant executables on my system. metal-package-builder is located inside the separately installed Metal Toolchain: .../Metal.xctoolchain/usr/bin/metal-package-buildercoremlcompiler does exist, but it is located inside Xcode's default toolchain: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/coremlcompilerThe Metal Toolchain directory does not contain coremlcompiler or an XcodeDefault.xctoolchain directory. Conversely, Xcode's default toolchain contains coremlcompiler, but does not contain metal-package-builder or coreai-build. xcrun can successfully locate the relevant tools individually. In other words, the tools are installed and discoverable, but metal-package-builder appears to be looking for coremlcompiler in a different location from where it is actually installed. Troubleshooting already attempted Verified that Xcode 27.2 is selected using xcode-select. Verified that the Metal Toolchain is installed. Confirmed that xcrun can locate metal-package-builder and coremlcompiler individually. Tried changing TOOLCHAINS and DEVELOPER_DIR to influence toolchain selection, but the error remains. Inspected the metal-package-builder binary and found a reference to the relative path XcodeDefault.xctoolchain/usr/bin/coremlcompiler. I have also spent considerable time troubleshooting this with AI assistants, including Gemini and ChatGPT, but none of the suggested solutions has resolved the issue. My questions Is this an issue with the Xcode 27.2 / Metal Toolchain 27B47 installation, or is metal-package-builder expected to locate coremlcompiler using this relative path? Is there a supported way to make metal-package-builder use the coremlcompiler executable from Xcode's default toolchain? Is there a required toolchain configuration, environment variable, or installation step that I may have missed? If this is a bug in the current toolchain, is there a workaround or a known fix? I would particularly appreciate clarification on the expected toolchain layout and how metal-package-builder is supposed to resolve the location of coremlcompiler. Thank you for your help.
1
0
68
1d
iPad and iPhone device not showing on Apple Configurator, Finder and Quicktime
After updating Mac OS to 27, my iPad and iPhone devices are not showing as a external device in Finder app or in Apple Configurator. It shows as connected in Xcode and i am able to run the app from Xcode to iPad. But i need to install ipa from Apple Configurator and these devices are not visibile in it. So are there any changes made in Mac OS 27? Or is there any additional setting to detect external devices. Is there any way to check if MDM profiles installed on my machine are restricting any external device?
0
0
74
2d
Supported way to supervise an iOS Simulator XCTest host before application code executes?
We are investigating a supported architecture for running existing app-hosted XCTest unit and integration tests in iOS Simulator under external process supervision. Our environment is Xcode 27.2, targeting ARM64 iOS Simulator. The tests use SwiftData, CoreData and SQLite with synthetic, test-owned databases. We need to run selected tests serially in isolated processes, monitor their resource usage, and verify that all test-related processes have terminated before cleaning up test databases. Our primary question: Is there a documented, supported way to establish external process supervision before the actual iOS Simulator XCTest host executes any application or test-bundle code? In particular, we are looking for guidance on the following: Pre-execution control: Can the actual XCTest host be launched suspended and released only after an external supervisor has established monitoring? We need coverage of application and test-bundle initialization, not merely a callback before the first test method. Process identity: Is there a supported mechanism to identify and monitor the actual host process using an OS-verifiable identity that remains reliable despite PID reuse? Process termination: Is there a supported way to identify and terminate only the processes belonging to a specific test run, including detached or reparented children, without affecting unrelated Simulator processes? XCTest integration: Can this be achieved while preserving normal XCTest discovery, setup/teardown, asynchronous tests and genuine .xcresult reporting? We have investigated public XCTest APIs, standard xcodebuild workflows and macOS process-control mechanisms. We also successfully compiled and linked a separate ARM64 Simulator executable against our unchanged application debug dylib and XCTest dependencies. However, this was strictly a compile/link experiment: the executable was never launched, and we have not established that a custom XCTest host is supported. We are not seeking private APIs or undocumented CoreSimulator behavior. If this level of supervision is not supported, what is Apple’s recommended documented alternative? In particular, does the standard Xcode-managed XCTest workflow provide any documented guarantees regarding host process identity, lifecycle containment and complete termination of test-related processes? References to official documentation or supported examples would be greatly appreciated.
1
0
93
3d
Individual Team Missing from App Store Connect — Active Membership
Hello everyone, My Individual Apple Developer Program membership was activated on November 17, 2026. However, after eight days, my Individual team is still missing from App Store Connect. My Apple Account is associated with two teams: an Individual team and an organization team. Current situation: Apple Developer: Both teams are visible. Xcode: Both teams are visible. App Store Connect: Only the organization team is available. App Store Connect's actors endpoint: Only the organization provider is returned. I have already contacted Apple Developer Support, but the issue remains unresolved. Could this be a provisioning or synchronization issue on Apple's backend? Has anyone experienced this issue with multiple teams associated with the same Apple Account? If so, how was it resolved? Any assistance from the community or Apple Developer Support would be greatly appreciated. Thank you!
1
0
118
5d
Xcode 27.2 – iPhone Simulator Black Screen, Data Migration Failed, and SwiftUI Preview Timeout on M1 Mac
Hi everyone, I've been experiencing persistent issues with the iPhone Simulator and SwiftUI Previews for several days. I've tried numerous troubleshooting steps, but nothing has permanently resolved the problem. My environment MacBook Pro – Apple M1 8 GB RAM macOS 27.2.1 Xcode 27.2 (27B52) iOS Simulator runtimes tested: 26.5, 27.0, and 27.2 Problems Xcode frequently gets stuck on "Preparing iPhone Simulator." DeviceHub displays a black screen. SwiftUI Previews take an unusually long time to load or fail completely. Simulators sometimes shut down unexpectedly. Xcode builds my application successfully but sometimes gets stuck launching it on the simulator. Error messages DeviceKitError 4002: Live device view took longer than expected to connect. Data Migration Failed. Failed to launch app in reasonable time. Mach error -308 – (ipc/mig) server died. Testing results I tested the simulator independently while Xcode was completely closed. The iOS 27.2 iPhone 18 Pro Max simulator successfully completed its startup after 4 minutes and 51 seconds. I could access the Home Screen and open Settings. However, after closing and reopening DeviceHub, the simulator displayed a black screen. I captured a screenshot directly using the simctl command, and the screenshot was also completely black. The simulator subsequently entered the Shutdown state unexpectedly. I also tested the iOS 27.0 simulator, which returned "Data Migration Failed" after 9 minutes and 13 seconds. Additionally, I created a completely new SwiftUI project to determine whether my existing project was causing the issue. The new project also experienced SwiftUI Preview launch timeouts. My existing application builds successfully and runs on my physical iPhone 13 Pro Max. Troubleshooting already performed Reinstalled Xcode from the Mac App Store. Verified that macOS and Xcode are up to date. Tested multiple iPhone simulator models and iOS runtimes. Created new simulator devices. Restarted CoreSimulator services. Cleaned the Xcode build folder. Tested Legacy Previews Execution. Tested a newly created SwiftUI project. Booted simulators independently using Terminal. Unfortunately, none of these steps permanently resolved the issue.I've always experienced slow loading times with the iPhone Simulator and SwiftUI Previews on my Mac. However, the problem has recently become significantly worse, with black screens, unexpected simulator shutdowns, data migration failures, and preview timeouts. I suspect the issue may have worsened after updating macOS, but I cannot confirm whether the update is responsible. I have also submitted a report through Apple Feedback Assistant with simulator diagnostics. Questions Has anyone experienced similar issues with Xcode 27.2, particularly on an Apple Silicon Mac with 8 GB of RAM? Could this be related to CoreSimulator, DeviceHub, runtime data migration, or resource limitations? Is there a known workaround or solution that does not require reinstalling macOS? I have spent several days troubleshooting this issue, and it is significantly affecting my iOS development workflow. Any suggestions or assistance would be greatly appreciated. Thank you!
2
0
362
5d
Un-Wanted Edit Menu Items
Xcode is adding un-wanted menu items to the Edit menu in a Mac Application. There is an automatically generated separator bar and an AutoFill menu item with two sub-menu items. Looking at the source code I see that two other items were suppressed in the initialize method of the AppController like this: NSMutableDictionary *defaultValues = [NSMutableDictionary dictionary]; //Get rid of Special characters menu item in edit menu: [defaultValues setObject: [NSNumber numberWithBool: YES] forKey: @"NSDisabledCharacterPaletteMenuItem"]; //Get rid of Start Dictation... menu item in edit menu: [defaultValues setObject: [NSNumber numberWithBool: YES] forKey: @"NSDisabledDictationMenuItem"]; [[NSUserDefaults standardUserDefaults] registerDefaults: defaultValues]; I guessed that there would also be a key like this: @"NSDisabledAutoFillMenuItem" but adding this to the code does nothing so apparently not. I searched programming forums and posters say that you can fix this by changing the name of the Edit menu to something like (space)Edit but this doesn't work. I searcher the Developer documentation and the Archives extensively for info about these keys but of course found nothing. Control-clicking on these pops up a menu of ways to search for these but none of them find anything. Control, option and command clicking on these keys results in ”?”. I can probably get a pointer to the menu and use NSMenu’s methods to delete these but something like the above would be better. Is there any documentation about this anywhere?
2
0
518
6d
Xcode Cloud cannot be setup from Xcode 27
I'm trying to start using Xcode Cloud from a project, but the only thing I get is the message saying "Failed to create workflow" with the actual error being "Could not find item. Domain: XcodeCloudKit.XcodeCloudCommandHandler.CommandHandlerError Code: 5". Initially, it did lead me to configuring permissions on GitHub. But it failed in the end probably because the git remote of the project was pointing to another organisation, that transferred the ownership to me. I switched remote to my org, but it didn't help. So, I revoked the permission and deleted Xcode Cloud app from my GitHub in hopes that the config process would start again. It does not. All I get is this senseless error. Is Xcode Cloud functionality functioning at all in Xcode beta 27 for anyone?
4
0
1.5k
6d
Swift Testing UI tests (Xcode 27.3 beta 2): launch() in the second test leaves the app "notRunning" (FB25692723)
Xcode 27.3 beta 2 lets us write UI tests with Swift Testing and XCUIAutomation, so I tried moving our UI tests over. In a UI testing bundle, when more than one Swift Testing test launches the app, XCUIApplication().launch() in the second test returns after about 0.5 seconds with state == .notRunning. Every element query in that test then fails. The app process is actually spawned and keeps running, but XCUIAutomation never attaches to it: state stays .notRunning even after wait(for: .runningForeground, timeout: 5). Minimal repro, in a new project with a SwiftUI app that shows a "Ready" text: import Testing import XCUIAutomation @MainActor struct SwiftTestingLaunchTests { @Test func `Launch 1`() throws { try launchAndCheck() } @Test func `Launch 2`() throws { try launchAndCheck() } @Test func `Launch 3`() throws { try launchAndCheck() } @Test func `Launch 4`() throws { try launchAndCheck() } private func launchAndCheck() throws { let app = XCUIApplication() app.launch() try #require(app.state == .runningForeground, "state right after launch(): \(app.state.rawValue)") try #require(app.staticTexts["Ready"].waitForExistence(timeout: 10)) } }Result (same in 4 of 4 runs, parallel testing off): ✔ Test "Launch 1" passed after 4.784 seconds. ✘ Test "Launch 2" recorded an issue at SwiftTestingLaunchTests.swift:15:13: Expectation failed: app.state == .runningForeground ↳ state right after launch(): 1 ✔ Test "Launch 3" passed after 5.516 seconds. ✔ Test "Launch 4" passed after 5.594 seconds.The same 4 tests written with XCTest (XCTestCase, XCUIApplication().launch(), XCTAssertEqual(app.state, .runningForeground)) pass every time on the same simulator. In the activity log, only the failing launch goes through "Wait for accessibility to load", right after terminating the previous instance: Launch 2 (fails): t = 6.99s Launch com.example.LaunchRepro t = 6.99s Terminate com.example.LaunchRepro:17666 t = 7.46s Wait for accessibility to load t = 7.47s Setting up automation session Launch 3 (passes): t = 8.59s Launch com.example.LaunchRepro t = 8.59s Terminate com.example.LaunchRepro:17672 t = 9.84s Setting up automation sessionWhat I tried, none of which helped: calling terminate() before launch() calling launch() again when state is not .runningForeground (this kills the instance that was starting) calling activate() when state is not .runningForeground In our real app (11 UI tests), the same 3 tests failed this way in every run, and each one passed when run alone. For now we keep the XCUIAutomation tests in XCTest and use Swift Testing only for tests that don't drive the UI. Environment: Xcode 27.3 beta 2 (27C5035i), iOS 27.3 simulator (24C5049d), iPhone 18 Pro simulator. Filed as FB25692723 with the minimal project attached. Has anyone else seen this, or found a workaround?
1
0
108
1w
Apple Watch (watchOS 27.2.1) stuck on connecting when pairing with MacBook Air in Xcode 27.2
Hi, I'm trying to pair my Apple Watch (watchOS 27.2.1) with Xcode 27.2 on my MacBook Air so I can install my personal watchOS app (using a Personal Team / free Apple ID). Current situation: iPhone 15 (iOS 27.2.1) is connected via USB and recognized properly in Xcode (xcrun devicectl list devices shows the iPhone as connected). However, the paired Apple Watch does not appear in Xcode Devices or devicectl. On Apple Watch, under Settings > Privacy & Security > Developer Mode, my MacBook Air appears, and Xcode shows "Waiting to pair." When I tap MacBook Air on the Watch, it gets stuck spinning on "Connecting..." and the 6-digit pairing code never appears. Because the Watch UDID is not in the provisioning profile, installing the embedded Watch app from the iPhone Watch app fails with "Could not verify integrity." What I have already tried: Installed the watchOS 27.2 platform component in Xcode Settings. Rebooted Apple Watch, iPhone, and MacBook Air. Tried both the same home Wi-Fi and direct Mac Internet Sharing (iPhone USB -> Wi-Fi) to bypass the router. Confirmed macOS Firewall is disabled. Is there any known issue or workaround to complete wireless pairing between watchOS 27.2.1 and Xcode 27.2?
0
1
55
1w
Xcode and AltServer fail to install apps on iPhone with 0xE8008018 using a Personal Team
I am using a free Apple Developer account (Personal Team), and I cannot install any app on a physical iPhone from Xcode. Xcode reports: 0xE8008018 — The identity used to sign the executable is no longer valid. com.apple.dt.MobileDeviceErrorDomain: -402620392The issue is reproducible with a brand-new, otherwise empty SwiftUI project using automatic signing and the Personal Team. The same project runs normally in the simulator. What I have checked: The iPhone's date and time are correct. Xcode shows an Apple Development certificate created on October 21, 2026, with no visible warnings. The same Apple account also fails in AltServer with signing error 0xE8008018. AltServer previously showed a different authentication error, which was resolved by updating to AltServer 1.7.6. The signing error remains. I have not been able to determine whether the cause is the development certificate, the provisioning profiles generated for the Personal Team, the Personal Team state itself, or an account-side restriction. I reported this through Feedback Assistant as FB25326619, and Apple Support referred me to the Developer Forums. Questions: How can I determine which specific signing asset Apple considers invalid? For a free Personal Team, what is the safest way to revoke and regenerate the development certificate and provisioning profiles? Could an account-side restriction explain why the same error occurs in both Xcode and AltServer?
1
0
470
1w
Xcode 16 on macOS Sequoia Keeps Removing Apple Accounts
I've recently set up new M4 Mac Minis with macOS Sequoia and Xcode 16. After logging into my Apple account in Xcode, everything works fine initially. However, the next day—or sometimes just a few hours later—my builds fail, and when I check the Accounts tab in Xcode's Settings, my account is missing. I have to re-add and re-authenticate my account, only for the same issue to recur later. To investigate further, I upgraded an older Mac Mini from macOS Sonoma and Xcode 15.1.0 to macOS Sequoia and Xcode 16.2. Unfortunately, this machine now exhibits the same behavior, suggesting the issue is related to either macOS Sequoia or Xcode 16. Has there been a change in Xcode or macOS that causes this automatic removal of accounts? Is there a solution or workaround to prevent Xcode from removing my Apple account? Any insights or suggestions would be greatly appreciated!
5
11
1.3k
1w
Xcode 27: the `@State` macro adds ~8 ms per property to every incremental build (FB25682496)
After moving a large app to Xcode 27.2, our one-line edit builds got 31% slower: 38 s became 50 s. We traced it to @State, which is a macro in the iOS 27 SDK. Posting the numbers in case other teams with big app targets are seeing the same thing. What we measured. Same machine, same tree, same xcodebuild command. Our app module has ~2,480 Swift files and 1,920 @State properties. Xcode 26.3Xcode 27.2One-line edit in a function body37–39 s50–51 sSwiftEmitModule task13.2 s23.0 stypecheck-decl (-stats-output-dir)6.0 s19.1 sClean build (compile + link)~147 s~148 sClean builds don't change. The cost lands in the emit-module job, which Xcode re-runs after every edit, even an edit inside a function body. Isolated. We generated 626 small views with 1,878 @State and timed one swiftc -emit-module -wmo job: No @State@State var x: T = value@State var x: T set in initXcode 26.33.2–3.5 s3.7 s3.7 sXcode 27.23.7 s19.1 s7.2 sWhy. Dump the expansion with -Xfrontend -dump-macro-expansions. A @State var x: Int = 0 expands into __x, _x: State<_>!, $x and a static initial-value property. None of them has a written type, and each repeats the initial value, so the compiler type-checks that value about four times during declaration checking. An explicit type on the property doesn't change the expansion. What helps today: Properties with no initial value (@State var x: T, set in init with _x = State(initialValue:)) expand to much less and cost about 2 ms instead of 8 ms. We're not rewriting hundreds of views on the strength of that, though. Fewer views in the app module. Moving views into Swift packages means an edit only re-checks the package it's in. That's our long-term fix anyway. We've filed FB25682496 with a standalone reproduction script. If you're seeing longer incremental builds on Xcode 27 in a SwiftUI-heavy target, check SwiftEmitModule in the build timing summary (-showBuildTimingSummary). We'd be glad to hear whether your numbers match.
0
0
102
1w
No MAS receipt after exit(173)
App receipt generation is broken (again). I'm getting the message my app is "damaged" on macOS Monterey 12.3.1 with Xcode 13.3.1 when no receipt is delivered after the app quits with exit(173) and I'm prompted for Mac App Store credentials. I tried App Store log out / log in (sandbox and regular account), cleaning derived data as well as reboot to no avail. Being aware of several old postings (and new comments), I decided to start a new thread to increase visibility ... and also filed a bug report FB10014055. Please consider a duplicate report if you're affected to raise Apple's awareness (all system status are reported as "green")...
12
1
4.7k
1w
Questions about swift student challenge 27
I'm excited to see the announcement of Swift Student Challenge 27, but I have a couple of questions: The rules mention that Xcode Apps are allowed. Does this mean we can create and submit a folder containing an .xcodeproj file instead of a .swiftpm Swift Playgrounds package? While it's great to see support across all Apple platforms this year, I'm a bit concerned about whether the judges will test submissions on physical devices or in the simulator. I had a similar concern last year (https://developer.apple.com/forums/thread/812429). Thanks!
2
0
291
1w
Resolving a "Simulator runtime is not available" error
Some Macs recently received a macOS system update which disabled the simulator runtimes used by Xcode 15, including the simulators for iOS, tvOS, watchOS, and visionOS. If your Mac received this update, you will receive the following error message and will be unable to use the simulator: The com.apple.CoreSimulator.SimRuntime.iOS-17-2 simulator runtime is not available. Domain: com.apple.CoreSimulator.SimError Code: 401 Failure Reason: runtime profile not found using "System" match policy Recovery Suggestion: Download the com.apple.CoreSimulator.SimRuntime.iOS-17-2 simulator runtime from the Xcode To resume using the simulator, please reboot your Mac. After rebooting, check Xcode Preferences → Platforms to ensure that the simulator runtime you would like to use is still installed. If it is missing, use the Get button to download it again. The Xcode 15.3 Release Notes are also updated with this information.
Replies
0
Boosts
0
Views
11k
Activity
May ’24
iOS 26.5 simulator data migration stays failed after MessageAccountsMigrator is watchdogged at 30 seconds
Unsure where else to post this since it only happens in macOS VMs. The first boot of a fresh iPhone 17 simulator on the iOS 26.5 runtime spends several minutes in data migration, then simctl bootstatus reports Data Migration Failed. The only failed plugin is MessageAccountsMigrator, and datamigrator kills it with a 30-second watchdog. The device still reaches Booted, but com.apple.migration.plist stores success=false, so every later boot runs data migration again and fails the same way. Environment Mac: Apple silicon virtual machine, 8 vCPU, 7 GB RAM, SIP disabled. The console user is logged in graphically. macOS 26.6.2 (25G83) Xcode 26.6 (17F113), xcode-select -p is /Applications/Xcode.app/Contents/Developer Runtime: iOS 26.5 (23F77), com.apple.CoreSimulator.SimRuntime.iOS-26-5 Device: the default iPhone 17 created with that runtime, state Shutdown before the first boot Steps Install Xcode 26.6 and the iOS 26.5 simulator runtime (xcodebuild -downloadPlatform iOS). Do not boot a simulator during install. xcrun simctl boot <iPhone 17 UDID> xcrun simctl bootstatus <UDID> -b Shut the device down and boot it again. Expected The first boot finishes data migration, including a fresh Messages account store with no accounts to migrate. Later boots skip data migration. Actual The first bootstatus -b runs for 5 minutes 25 seconds and ends with: Status=3, isTerminal=YES Data Migration Failed bootstatus still exits 0. simctl list shows the device as Booted. SpringBoard is running, and xcrun simctl io <UDID> screenshot shows the home screen. ~/Library/Developer/CoreSimulator/Devices/<UDID>/data/Library/Preferences/com.apple.migration.plist records: DMLastMigrationResults.success = false DMLastMigrationResults.buildVersion = 23F77 Every other plugin we inspected finished with kDMMigrationPhaseDescriptionDidFinishWithSuccess. 00LaunchServicesMigrator took about 148 seconds and succeeded. The only failure is:com.apple.message.AccountsMigrator MessageAccountsMigrator.migrator kDMMigrationPluginResultsDuration = 30.922 seconds kDMMigrationPluginResultsPhaseDescription = kDMMigrationPhaseDescriptionDidFinishWithFailure The simulated device log (com.apple.migration:core) shows the plugin estimated 0.1 seconds, produced no further log lines, and was then killed: Beginning migration for com.apple.message.AccountsMigrator (MessageAccountsMigrator.migrator); estimate is 0.1 seconds Out-of-process execution will watchdog com.apple.message.AccountsMigrator (MessageAccountsMigrator.migrator) pid 1377 after 30 seconds MigrationPluginWrapper -runPluginAtPath: .../MessageAccountsMigrator.migrator withParameters: XPC error: Connection interrupted Out-of-process execution did get watchdogged for com.apple.message.AccountsMigrator (MessageAccountsMigrator.migrator) with Error Domain=com.apple.datamigrator Code=0 "migrationpluginwrapper xpc error" UserInfo={NSLocalizedDescription=migrationpluginwrapper xpc error} ... completed migration for com.apple.message.AccountsMigrator (MessageAccountsMigrator.migrator) (30.9222 s) with success 0 ... Got Watchdogged, pid 1377, after 30 secondsA second boot, after a clean simctl shutdown, failed again in 65 seconds with the same Status=3 / Data Migration Failed. The stored success=false makes every boot retry migration. Setting both of these and booting again skipped migration: DMLastMigrationResults.success = true com.apple.message.AccountsMigrator phase = kDMMigrationPhaseDescriptionDidFinishWithSuccess That boot took 24 seconds and ended with Status=4294967295, Finished (Waiting on BackBoard, then Waiting on System App). The device was usable, so the watchdog looks like a stuck empty migration rather than a broken device. During the same boot, CoreSimulator.log also repeats: Failed to get a device identity for simulator device <UDID> Error Domain=com.apple.MobileActivation.ErrorDomain Code=-25 "Client is not supported." com.apple.CoreSimulator.CoreSimulatorService is not allowed to use this API.I have not shown that this identity error is what MessageAccountsMigrator is blocked on. The migrator log is silent until the watchdog fires. Two things would help: MessageAccountsMigrator should finish quickly when there are no accounts, and a watchdog kill of that plugin should not leave the whole migration success=false so that every later boot pays for it again. bootstatus should also return non-zero when it prints Data Migration Failed.
Replies
0
Boosts
0
Views
23
Activity
4h
Apple watch Xcode pairing & connection issues
I’m blocked debugging a watchOS app on a physical Apple Watch. The iPhone connects to Xcode normally (wired), but the Watch either fails to connect with a tunnel timeout or disappears entirely from Xcode after I unpaired it inside Devices & Simulators. Environment Mac: macOS 26.x (Apple Silicon Mac) Xcode: 26.2 iPhone: iOS 26.1 Apple Watch Ultra: watchOS 26.2 (build 23S303) Connection: iPhone connected to Mac via USB (trusted). Watch paired to iPhone and working normally in the Watch app. Issue A (when Watch is visible in Xcode) In Xcode → Window → Devices and Simulators, the Watch shows up but is not usable and fails to connect. Error: “Previous preparation error: A connection to this device could not be established.” “Timed out while attempting to establish tunnel using negotiated network parameters.” In some attempts the Watch shows “Capacity: Unknown” / limited details, and then fails during preparation. Issue B (after unpairing Watch in Xcode only) I unpaired/removed the Watch in Xcode (Devices & Simulators). I did not unpair the Watch from the iPhone. Now: iPhone appears in Xcode and works normally for builds. Watch is still paired to the iPhone and works normally. Watch no longer appears anywhere in Xcode Devices & Simulators (no paired watch section, no watch run destination). What I’ve tried Reboots of Mac, iPhone, Watch (multiple times) Watch unlocked, awake; iPhone unlocked and close to Watch Verified Watch is paired and connected in iPhone Watch app Developer Mode enabled on iPhone and Watch Wi-Fi and Bluetooth ON (Mac/iPhone/Watch), tried toggling both Tried on home Wi-Fi and also with iPhone hotspot (same result) Resetting trust prompts / reconnecting iPhone via USB, re-trusting Mac Apple Watch: “Clear Trusted Computers” Xcode: removing/re-adding devices; clearing derived data; restarting Xcode Watch Developer networking test: Responsiveness = Medium (430 RPM) Questions 1. Is this a known issue/regression with Xcode 26.2 + watchOS 26.2 tunneling (CoreDevice / devicectl)? 2. Is there an Apple-supported way to force Xcode to re-discover a paired Watch after it was removed from Xcode Devices & Simulators (without unpairing the Watch from the iPhone)? 3. Any recommended logs or diagnostic steps I should collect (Console logs, sysdiagnose, specific Xcode/CoreDevice logs) to include in a Feedback report? If helpful, I can provide the full error text from Xcode’s Devices window and any logs you recommend. Thank you in advance,
Replies
33
Boosts
16
Views
7.4k
Activity
6h
Can I submit a build made with Xcode 26 after releasing a newer version built with Xcode 27.1?
Question Is it supported to ship version N built with Xcode 27.1 (iOS 27 SDK), and then, after N is live, submit version N+1 built with Xcode 26 (iOS 26 SDK) as a rollback or hotfix? Context Version N is a major internal change built with Xcode 27.1 (UIScene lifecycle adoption). It will be released with phased release. If a serious regression appears, I know I cannot revert to a previous binary in App Store Connect. My plan is to keep the pre-change code on its own branch. I would bump the marketing version to N+1 (higher than N) and the build number, archive it with Xcode 26, and submit it as a normal update. What I found so far The SDK minimum requirements page says uploads currently need Xcode 26 or later with the iOS 26 SDK. It also says that from April 2027, uploads must use the iOS 27 SDK or later. TN2420 says version numbers cannot be reused and must increase. I found no official statement about whether a build from an older Xcode is accepted after a newer-Xcode build has shipped, beyond the April 2027 SDK cutoff. Specific questions Is there any rule or check that rejects an upload or submission because a higher version was previously built with a newer Xcode or SDK? Or is only the current SDK minimum enforced? Is N+1 built with Xcode 26 accepted for review and release at any point before the April 2027 SDK minimum takes effect? Is there a date at which Xcode 26 / iOS 26 SDK uploads stop being accepted, so I know how long this rollback path stays open? Is it safe to upload the Xcode 26 build to TestFlight now so it is already processed and ready? Does having a TestFlight build with a lower SDK than the live version cause any problem? Does the Xcode 26 build run correctly on iOS 27 devices when the app adopts UIScene lifecycle only in the Xcode 27 version? Are there any known assertions or behavior differences for apps built with the older SDK? For users who already installed N from Xcode 27.1, are there known problems when they update to N+1 built with an older SDK? For example, issues with app data, state restoration, or extensions. Thank you for any guidance or documentation pointers.
Replies
0
Boosts
0
Views
87
Activity
12h
Xcode 27.2: metal-package-builder Cannot Locate coremlcompiler When Converting .mlpackage to .mtlpackage
Hello, I'm trying to convert a Core ML model package (.mlpackage) into a Metal model package (.mtlpackage) using xcrun metal-package-builder, but the conversion consistently fails because metal-package-builder cannot locate coremlcompiler. Environment Mac: Mac mini with Apple M2 macOS: 27.2.1 Xcode: 27.2 (Build 27B52) Metal Toolchain: 27B47 Architecture: Apple Silicon (arm64) Command I'm running the following command in Terminal: xcrun --sdk macosx --find metal-package-builderIt successfully locates metal-package-builder in the installed Metal Toolchain. Then I run: "$(xcrun --sdk macosx --find metal-package-builder)" \ -ml "./2x_AniSD_DC_SPAN_92500_fp16_720x480.mlpackage" \ -o "./2x_AniSD_DC_SPAN_92500_fp16_720x480.mtlpackage"Error The command fails with: error: could not find coremlcompiler at /private/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v27.2.47.0.liDqLQ/XcodeDefault.xctoolchain/usr/bin/coremlcompilerWhat I have investigated so far I checked the actual locations of the relevant executables on my system. metal-package-builder is located inside the separately installed Metal Toolchain: .../Metal.xctoolchain/usr/bin/metal-package-buildercoremlcompiler does exist, but it is located inside Xcode's default toolchain: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/coremlcompilerThe Metal Toolchain directory does not contain coremlcompiler or an XcodeDefault.xctoolchain directory. Conversely, Xcode's default toolchain contains coremlcompiler, but does not contain metal-package-builder or coreai-build. xcrun can successfully locate the relevant tools individually. In other words, the tools are installed and discoverable, but metal-package-builder appears to be looking for coremlcompiler in a different location from where it is actually installed. Troubleshooting already attempted Verified that Xcode 27.2 is selected using xcode-select. Verified that the Metal Toolchain is installed. Confirmed that xcrun can locate metal-package-builder and coremlcompiler individually. Tried changing TOOLCHAINS and DEVELOPER_DIR to influence toolchain selection, but the error remains. Inspected the metal-package-builder binary and found a reference to the relative path XcodeDefault.xctoolchain/usr/bin/coremlcompiler. I have also spent considerable time troubleshooting this with AI assistants, including Gemini and ChatGPT, but none of the suggested solutions has resolved the issue. My questions Is this an issue with the Xcode 27.2 / Metal Toolchain 27B47 installation, or is metal-package-builder expected to locate coremlcompiler using this relative path? Is there a supported way to make metal-package-builder use the coremlcompiler executable from Xcode's default toolchain? Is there a required toolchain configuration, environment variable, or installation step that I may have missed? If this is a bug in the current toolchain, is there a workaround or a known fix? I would particularly appreciate clarification on the expected toolchain layout and how metal-package-builder is supposed to resolve the location of coremlcompiler. Thank you for your help.
Replies
1
Boosts
0
Views
68
Activity
1d
iPad and iPhone device not showing on Apple Configurator, Finder and Quicktime
After updating Mac OS to 27, my iPad and iPhone devices are not showing as a external device in Finder app or in Apple Configurator. It shows as connected in Xcode and i am able to run the app from Xcode to iPad. But i need to install ipa from Apple Configurator and these devices are not visibile in it. So are there any changes made in Mac OS 27? Or is there any additional setting to detect external devices. Is there any way to check if MDM profiles installed on my machine are restricting any external device?
Replies
0
Boosts
0
Views
74
Activity
2d
Supported way to supervise an iOS Simulator XCTest host before application code executes?
We are investigating a supported architecture for running existing app-hosted XCTest unit and integration tests in iOS Simulator under external process supervision. Our environment is Xcode 27.2, targeting ARM64 iOS Simulator. The tests use SwiftData, CoreData and SQLite with synthetic, test-owned databases. We need to run selected tests serially in isolated processes, monitor their resource usage, and verify that all test-related processes have terminated before cleaning up test databases. Our primary question: Is there a documented, supported way to establish external process supervision before the actual iOS Simulator XCTest host executes any application or test-bundle code? In particular, we are looking for guidance on the following: Pre-execution control: Can the actual XCTest host be launched suspended and released only after an external supervisor has established monitoring? We need coverage of application and test-bundle initialization, not merely a callback before the first test method. Process identity: Is there a supported mechanism to identify and monitor the actual host process using an OS-verifiable identity that remains reliable despite PID reuse? Process termination: Is there a supported way to identify and terminate only the processes belonging to a specific test run, including detached or reparented children, without affecting unrelated Simulator processes? XCTest integration: Can this be achieved while preserving normal XCTest discovery, setup/teardown, asynchronous tests and genuine .xcresult reporting? We have investigated public XCTest APIs, standard xcodebuild workflows and macOS process-control mechanisms. We also successfully compiled and linked a separate ARM64 Simulator executable against our unchanged application debug dylib and XCTest dependencies. However, this was strictly a compile/link experiment: the executable was never launched, and we have not established that a custom XCTest host is supported. We are not seeking private APIs or undocumented CoreSimulator behavior. If this level of supervision is not supported, what is Apple’s recommended documented alternative? In particular, does the standard Xcode-managed XCTest workflow provide any documented guarantees regarding host process identity, lifecycle containment and complete termination of test-related processes? References to official documentation or supported examples would be greatly appreciated.
Replies
1
Boosts
0
Views
93
Activity
3d
Individual Team Missing from App Store Connect — Active Membership
Hello everyone, My Individual Apple Developer Program membership was activated on November 17, 2026. However, after eight days, my Individual team is still missing from App Store Connect. My Apple Account is associated with two teams: an Individual team and an organization team. Current situation: Apple Developer: Both teams are visible. Xcode: Both teams are visible. App Store Connect: Only the organization team is available. App Store Connect's actors endpoint: Only the organization provider is returned. I have already contacted Apple Developer Support, but the issue remains unresolved. Could this be a provisioning or synchronization issue on Apple's backend? Has anyone experienced this issue with multiple teams associated with the same Apple Account? If so, how was it resolved? Any assistance from the community or Apple Developer Support would be greatly appreciated. Thank you!
Replies
1
Boosts
0
Views
118
Activity
5d
Xcode 27.2 – iPhone Simulator Black Screen, Data Migration Failed, and SwiftUI Preview Timeout on M1 Mac
Hi everyone, I've been experiencing persistent issues with the iPhone Simulator and SwiftUI Previews for several days. I've tried numerous troubleshooting steps, but nothing has permanently resolved the problem. My environment MacBook Pro – Apple M1 8 GB RAM macOS 27.2.1 Xcode 27.2 (27B52) iOS Simulator runtimes tested: 26.5, 27.0, and 27.2 Problems Xcode frequently gets stuck on "Preparing iPhone Simulator." DeviceHub displays a black screen. SwiftUI Previews take an unusually long time to load or fail completely. Simulators sometimes shut down unexpectedly. Xcode builds my application successfully but sometimes gets stuck launching it on the simulator. Error messages DeviceKitError 4002: Live device view took longer than expected to connect. Data Migration Failed. Failed to launch app in reasonable time. Mach error -308 – (ipc/mig) server died. Testing results I tested the simulator independently while Xcode was completely closed. The iOS 27.2 iPhone 18 Pro Max simulator successfully completed its startup after 4 minutes and 51 seconds. I could access the Home Screen and open Settings. However, after closing and reopening DeviceHub, the simulator displayed a black screen. I captured a screenshot directly using the simctl command, and the screenshot was also completely black. The simulator subsequently entered the Shutdown state unexpectedly. I also tested the iOS 27.0 simulator, which returned "Data Migration Failed" after 9 minutes and 13 seconds. Additionally, I created a completely new SwiftUI project to determine whether my existing project was causing the issue. The new project also experienced SwiftUI Preview launch timeouts. My existing application builds successfully and runs on my physical iPhone 13 Pro Max. Troubleshooting already performed Reinstalled Xcode from the Mac App Store. Verified that macOS and Xcode are up to date. Tested multiple iPhone simulator models and iOS runtimes. Created new simulator devices. Restarted CoreSimulator services. Cleaned the Xcode build folder. Tested Legacy Previews Execution. Tested a newly created SwiftUI project. Booted simulators independently using Terminal. Unfortunately, none of these steps permanently resolved the issue.I've always experienced slow loading times with the iPhone Simulator and SwiftUI Previews on my Mac. However, the problem has recently become significantly worse, with black screens, unexpected simulator shutdowns, data migration failures, and preview timeouts. I suspect the issue may have worsened after updating macOS, but I cannot confirm whether the update is responsible. I have also submitted a report through Apple Feedback Assistant with simulator diagnostics. Questions Has anyone experienced similar issues with Xcode 27.2, particularly on an Apple Silicon Mac with 8 GB of RAM? Could this be related to CoreSimulator, DeviceHub, runtime data migration, or resource limitations? Is there a known workaround or solution that does not require reinstalling macOS? I have spent several days troubleshooting this issue, and it is significantly affecting my iOS development workflow. Any suggestions or assistance would be greatly appreciated. Thank you!
Replies
2
Boosts
0
Views
362
Activity
5d
Un-Wanted Edit Menu Items
Xcode is adding un-wanted menu items to the Edit menu in a Mac Application. There is an automatically generated separator bar and an AutoFill menu item with two sub-menu items. Looking at the source code I see that two other items were suppressed in the initialize method of the AppController like this: NSMutableDictionary *defaultValues = [NSMutableDictionary dictionary]; //Get rid of Special characters menu item in edit menu: [defaultValues setObject: [NSNumber numberWithBool: YES] forKey: @"NSDisabledCharacterPaletteMenuItem"]; //Get rid of Start Dictation... menu item in edit menu: [defaultValues setObject: [NSNumber numberWithBool: YES] forKey: @"NSDisabledDictationMenuItem"]; [[NSUserDefaults standardUserDefaults] registerDefaults: defaultValues]; I guessed that there would also be a key like this: @"NSDisabledAutoFillMenuItem" but adding this to the code does nothing so apparently not. I searched programming forums and posters say that you can fix this by changing the name of the Edit menu to something like (space)Edit but this doesn't work. I searcher the Developer documentation and the Archives extensively for info about these keys but of course found nothing. Control-clicking on these pops up a menu of ways to search for these but none of them find anything. Control, option and command clicking on these keys results in ”?”. I can probably get a pointer to the menu and use NSMenu’s methods to delete these but something like the above would be better. Is there any documentation about this anywhere?
Replies
2
Boosts
0
Views
518
Activity
6d
Xcode Cloud cannot be setup from Xcode 27
I'm trying to start using Xcode Cloud from a project, but the only thing I get is the message saying "Failed to create workflow" with the actual error being "Could not find item. Domain: XcodeCloudKit.XcodeCloudCommandHandler.CommandHandlerError Code: 5". Initially, it did lead me to configuring permissions on GitHub. But it failed in the end probably because the git remote of the project was pointing to another organisation, that transferred the ownership to me. I switched remote to my org, but it didn't help. So, I revoked the permission and deleted Xcode Cloud app from my GitHub in hopes that the config process would start again. It does not. All I get is this senseless error. Is Xcode Cloud functionality functioning at all in Xcode beta 27 for anyone?
Replies
4
Boosts
0
Views
1.5k
Activity
6d
Swift Testing UI tests (Xcode 27.3 beta 2): launch() in the second test leaves the app "notRunning" (FB25692723)
Xcode 27.3 beta 2 lets us write UI tests with Swift Testing and XCUIAutomation, so I tried moving our UI tests over. In a UI testing bundle, when more than one Swift Testing test launches the app, XCUIApplication().launch() in the second test returns after about 0.5 seconds with state == .notRunning. Every element query in that test then fails. The app process is actually spawned and keeps running, but XCUIAutomation never attaches to it: state stays .notRunning even after wait(for: .runningForeground, timeout: 5). Minimal repro, in a new project with a SwiftUI app that shows a "Ready" text: import Testing import XCUIAutomation @MainActor struct SwiftTestingLaunchTests { @Test func `Launch 1`() throws { try launchAndCheck() } @Test func `Launch 2`() throws { try launchAndCheck() } @Test func `Launch 3`() throws { try launchAndCheck() } @Test func `Launch 4`() throws { try launchAndCheck() } private func launchAndCheck() throws { let app = XCUIApplication() app.launch() try #require(app.state == .runningForeground, "state right after launch(): \(app.state.rawValue)") try #require(app.staticTexts["Ready"].waitForExistence(timeout: 10)) } }Result (same in 4 of 4 runs, parallel testing off): ✔ Test "Launch 1" passed after 4.784 seconds. ✘ Test "Launch 2" recorded an issue at SwiftTestingLaunchTests.swift:15:13: Expectation failed: app.state == .runningForeground ↳ state right after launch(): 1 ✔ Test "Launch 3" passed after 5.516 seconds. ✔ Test "Launch 4" passed after 5.594 seconds.The same 4 tests written with XCTest (XCTestCase, XCUIApplication().launch(), XCTAssertEqual(app.state, .runningForeground)) pass every time on the same simulator. In the activity log, only the failing launch goes through "Wait for accessibility to load", right after terminating the previous instance: Launch 2 (fails): t = 6.99s Launch com.example.LaunchRepro t = 6.99s Terminate com.example.LaunchRepro:17666 t = 7.46s Wait for accessibility to load t = 7.47s Setting up automation session Launch 3 (passes): t = 8.59s Launch com.example.LaunchRepro t = 8.59s Terminate com.example.LaunchRepro:17672 t = 9.84s Setting up automation sessionWhat I tried, none of which helped: calling terminate() before launch() calling launch() again when state is not .runningForeground (this kills the instance that was starting) calling activate() when state is not .runningForeground In our real app (11 UI tests), the same 3 tests failed this way in every run, and each one passed when run alone. For now we keep the XCUIAutomation tests in XCTest and use Swift Testing only for tests that don't drive the UI. Environment: Xcode 27.3 beta 2 (27C5035i), iOS 27.3 simulator (24C5049d), iPhone 18 Pro simulator. Filed as FB25692723 with the minimal project attached. Has anyone else seen this, or found a workaround?
Replies
1
Boosts
0
Views
108
Activity
1w
Apple Watch (watchOS 27.2.1) stuck on connecting when pairing with MacBook Air in Xcode 27.2
Hi, I'm trying to pair my Apple Watch (watchOS 27.2.1) with Xcode 27.2 on my MacBook Air so I can install my personal watchOS app (using a Personal Team / free Apple ID). Current situation: iPhone 15 (iOS 27.2.1) is connected via USB and recognized properly in Xcode (xcrun devicectl list devices shows the iPhone as connected). However, the paired Apple Watch does not appear in Xcode Devices or devicectl. On Apple Watch, under Settings > Privacy & Security > Developer Mode, my MacBook Air appears, and Xcode shows "Waiting to pair." When I tap MacBook Air on the Watch, it gets stuck spinning on "Connecting..." and the 6-digit pairing code never appears. Because the Watch UDID is not in the provisioning profile, installing the embedded Watch app from the iPhone Watch app fails with "Could not verify integrity." What I have already tried: Installed the watchOS 27.2 platform component in Xcode Settings. Rebooted Apple Watch, iPhone, and MacBook Air. Tried both the same home Wi-Fi and direct Mac Internet Sharing (iPhone USB -> Wi-Fi) to bypass the router. Confirmed macOS Firewall is disabled. Is there any known issue or workaround to complete wireless pairing between watchOS 27.2.1 and Xcode 27.2?
Replies
0
Boosts
1
Views
55
Activity
1w
Xcode and AltServer fail to install apps on iPhone with 0xE8008018 using a Personal Team
I am using a free Apple Developer account (Personal Team), and I cannot install any app on a physical iPhone from Xcode. Xcode reports: 0xE8008018 — The identity used to sign the executable is no longer valid. com.apple.dt.MobileDeviceErrorDomain: -402620392The issue is reproducible with a brand-new, otherwise empty SwiftUI project using automatic signing and the Personal Team. The same project runs normally in the simulator. What I have checked: The iPhone's date and time are correct. Xcode shows an Apple Development certificate created on October 21, 2026, with no visible warnings. The same Apple account also fails in AltServer with signing error 0xE8008018. AltServer previously showed a different authentication error, which was resolved by updating to AltServer 1.7.6. The signing error remains. I have not been able to determine whether the cause is the development certificate, the provisioning profiles generated for the Personal Team, the Personal Team state itself, or an account-side restriction. I reported this through Feedback Assistant as FB25326619, and Apple Support referred me to the Developer Forums. Questions: How can I determine which specific signing asset Apple considers invalid? For a free Personal Team, what is the safest way to revoke and regenerate the development certificate and provisioning profiles? Could an account-side restriction explain why the same error occurs in both Xcode and AltServer?
Replies
1
Boosts
0
Views
470
Activity
1w
Xcode 16 on macOS Sequoia Keeps Removing Apple Accounts
I've recently set up new M4 Mac Minis with macOS Sequoia and Xcode 16. After logging into my Apple account in Xcode, everything works fine initially. However, the next day—or sometimes just a few hours later—my builds fail, and when I check the Accounts tab in Xcode's Settings, my account is missing. I have to re-add and re-authenticate my account, only for the same issue to recur later. To investigate further, I upgraded an older Mac Mini from macOS Sonoma and Xcode 15.1.0 to macOS Sequoia and Xcode 16.2. Unfortunately, this machine now exhibits the same behavior, suggesting the issue is related to either macOS Sequoia or Xcode 16. Has there been a change in Xcode or macOS that causes this automatic removal of accounts? Is there a solution or workaround to prevent Xcode from removing my Apple account? Any insights or suggestions would be greatly appreciated!
Replies
5
Boosts
11
Views
1.3k
Activity
1w
Xcode 27: the `@State` macro adds ~8 ms per property to every incremental build (FB25682496)
After moving a large app to Xcode 27.2, our one-line edit builds got 31% slower: 38 s became 50 s. We traced it to @State, which is a macro in the iOS 27 SDK. Posting the numbers in case other teams with big app targets are seeing the same thing. What we measured. Same machine, same tree, same xcodebuild command. Our app module has ~2,480 Swift files and 1,920 @State properties. Xcode 26.3Xcode 27.2One-line edit in a function body37–39 s50–51 sSwiftEmitModule task13.2 s23.0 stypecheck-decl (-stats-output-dir)6.0 s19.1 sClean build (compile + link)~147 s~148 sClean builds don't change. The cost lands in the emit-module job, which Xcode re-runs after every edit, even an edit inside a function body. Isolated. We generated 626 small views with 1,878 @State and timed one swiftc -emit-module -wmo job: No @State@State var x: T = value@State var x: T set in initXcode 26.33.2–3.5 s3.7 s3.7 sXcode 27.23.7 s19.1 s7.2 sWhy. Dump the expansion with -Xfrontend -dump-macro-expansions. A @State var x: Int = 0 expands into __x, _x: State<_>!, $x and a static initial-value property. None of them has a written type, and each repeats the initial value, so the compiler type-checks that value about four times during declaration checking. An explicit type on the property doesn't change the expansion. What helps today: Properties with no initial value (@State var x: T, set in init with _x = State(initialValue:)) expand to much less and cost about 2 ms instead of 8 ms. We're not rewriting hundreds of views on the strength of that, though. Fewer views in the app module. Moving views into Swift packages means an edit only re-checks the package it's in. That's our long-term fix anyway. We've filed FB25682496 with a standalone reproduction script. If you're seeing longer incremental builds on Xcode 27 in a SwiftUI-heavy target, check SwiftEmitModule in the build timing summary (-showBuildTimingSummary). We'd be glad to hear whether your numbers match.
Replies
0
Boosts
0
Views
102
Activity
1w
No MAS receipt after exit(173)
App receipt generation is broken (again). I'm getting the message my app is "damaged" on macOS Monterey 12.3.1 with Xcode 13.3.1 when no receipt is delivered after the app quits with exit(173) and I'm prompted for Mac App Store credentials. I tried App Store log out / log in (sandbox and regular account), cleaning derived data as well as reboot to no avail. Being aware of several old postings (and new comments), I decided to start a new thread to increase visibility ... and also filed a bug report FB10014055. Please consider a duplicate report if you're affected to raise Apple's awareness (all system status are reported as "green")...
Replies
12
Boosts
1
Views
4.7k
Activity
1w
Questions about swift student challenge 27
I'm excited to see the announcement of Swift Student Challenge 27, but I have a couple of questions: The rules mention that Xcode Apps are allowed. Does this mean we can create and submit a folder containing an .xcodeproj file instead of a .swiftpm Swift Playgrounds package? While it's great to see support across all Apple platforms this year, I'm a bit concerned about whether the judges will test submissions on physical devices or in the simulator. I had a similar concern last year (https://developer.apple.com/forums/thread/812429). Thanks!
Replies
2
Boosts
0
Views
291
Activity
1w